
#import "GalleryRoomLamp.h"

@implementation GalleryRoomLamp

+(GalleryRoomLamp *)instanceFromDictionary:(NSDictionary *)aDictionary {
    GalleryRoomLamp *instance = [[GalleryRoomLamp alloc] init];

    instance.hotspotX = [aDictionary[@"hotspot_x"] floatValue];
    instance.hotspotY = [aDictionary[@"hotspot_y"] floatValue];
    instance.documentName = aDictionary[@"document"];
    
    return instance;
}

@end
